-- GENERATED SPELL FOR [Sinister Reflection] --


function spell0_25708(pUnit, Event) --@Curse of Agony,n/a--
pUnit:FullCastSpellOnTarget(46190,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 30000, 1)
end

function spell1_25708(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(47071,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 2279, 1)
end

function spell2_25708(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(47074,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 1000, 1)
end

function spell3_25708(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(37369,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 4315, 1)
end

function spell4_25708(pUnit, Event) --@Hemorrhage,n/a--
pUnit:FullCastSpellOnTarget(45897,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 10000, 1)
end

function spell5_25708(pUnit, Event) --@Holy Shock,n/a--
pUnit:FullCastSpellOnTarget(38921,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 621, 1)
end

function spell6_25708(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(47077,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 1000, 1)
end

function spell7_25708(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(47072,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 12000, 1)
end

function spell8_25708(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(48098,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 550, 1)
end

function spell9_25708(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(58843,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 657, 1)
end

function spell10_25708(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(47079,pUnit)
pUnit:RegisterEvent('Sorts_25708', 15000, 1)
end

function spell11_25708(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(47076,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 1000, 1)
end

function spell12_25708(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 620, 1)
end

function spell13_25708(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15576,pUnit)
pUnit:RegisterEvent('Sorts_25708', 554, 1)
end

function spell14_25708(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(17207,pUnit)
pUnit:RegisterEvent('Sorts_25708', 2000, 1)
end

function spell15_25708(pUnit, Event) --@Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(40652,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25708', 10303, 1)
end

function Sorts_25708(pUnit, Event)
local choix_sorts_25708 = math.random(0, 15)
if choix_sorts_25708 == 0 then
pUnit:RegisterEvent('spell0_25708', 1, 1)
end
if choix_sorts_25708 == 1 then
pUnit:RegisterEvent('spell1_25708', 1, 1)
end
if choix_sorts_25708 == 2 then
pUnit:RegisterEvent('spell2_25708', 1, 1)
end
if choix_sorts_25708 == 3 then
pUnit:RegisterEvent('spell3_25708', 1, 1)
end
if choix_sorts_25708 == 4 then
pUnit:RegisterEvent('spell4_25708', 1, 1)
end
if choix_sorts_25708 == 5 then
pUnit:RegisterEvent('spell5_25708', 1, 1)
end
if choix_sorts_25708 == 6 then
pUnit:RegisterEvent('spell6_25708', 1, 1)
end
if choix_sorts_25708 == 7 then
pUnit:RegisterEvent('spell7_25708', 1, 1)
end
if choix_sorts_25708 == 8 then
pUnit:RegisterEvent('spell8_25708', 1, 1)
end
if choix_sorts_25708 == 9 then
pUnit:RegisterEvent('spell9_25708', 1, 1)
end
if choix_sorts_25708 == 10 then
pUnit:RegisterEvent('spell10_25708', 1, 1)
end
if choix_sorts_25708 == 11 then
pUnit:RegisterEvent('spell11_25708', 1, 1)
end
if choix_sorts_25708 == 12 then
pUnit:RegisterEvent('spell12_25708', 1, 1)
end
if choix_sorts_25708 == 13 then
pUnit:RegisterEvent('spell13_25708', 1, 1)
end
if choix_sorts_25708 == 14 then
pUnit:RegisterEvent('spell14_25708', 1, 1)
end
if choix_sorts_25708 == 15 then
pUnit:RegisterEvent('spell15_25708', 1, 1)
end
end

function mob25708_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25708', math.random(1500, 3000), 1)
end

function mob25708_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25708_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25708_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25708, 1, 'mob25708_Action')
RegisterUnitEvent(25708, 2, 'mob25708_Leave')
RegisterUnitEvent(25708, 3, 'mob25708_Kill')
RegisterUnitEvent(25708, 4, 'mob25708_Die')
